#!/usr/bin/python3
cube_state_cw = {
    'DF':['DL','RF'],
    'DB':['DR','LB'],
    'DL':['DB','FL'],
    'DR':['DF','BR'],
    'UF':['UR','LF'],
    'UB':['UL','RB'],
    'UL':['UF','BL'],
    'UR':['UB','FR'],
    'FL':['FD','UL'],
    'FR':['FU','DR'],
    'FU':['FL','RU'],
    'FD':['FR','LD'],
    'BL':['BU','DL'],
    'BR':['BD','UR'],
    'BU':['BR','LU'],
    'BD':['BL','RD'],
    'LF':['LU','DF'],
    'LB':['LD','UB'],
    'LU':['LB','FU'],
    'LD':['LF','BD'],
    'RF':['RD','UF'],
    'RB':['RU','DB'],
    'RU':['RF','BU'],
    'RD':['RB','FD'],
}

print("// 90,LEFT,CW|180,LEFT|90,LEFT,CCW|90,RIGHT,CW|180,RIGHT|90,RIGHT,CCW")
for item in cube_state_cw:
    s_90_left_cw = cube_state_cw[item][0]
    s_180_left = cube_state_cw[s_90_left_cw][0]
    s_90_left_ccw = cube_state_cw[s_180_left][0]
    s_90_right_cw = cube_state_cw[item][1]
    s_180_right = cube_state_cw[s_90_right_cw][1]
    s_90_right_ccw = cube_state_cw[s_180_right][1]
    print("{STAT_%s, STAT_%s, STAT_%s, STAT_%s, STAT_%s, STAT_%s}, // flip from STAT_%s"
          %(s_90_left_cw, s_180_left, s_90_left_ccw, s_90_right_cw, s_180_right, s_90_right_ccw,item))